import request from '@/utils/request'

export function getUserList(data) {
  return request({
    url: '/student/list',
    method: 'get',
    params:{
      pageNum: data.pageNum,
      pageSize: data.pageSize
    }
  })
}

export function addUser(data) {
  return request({
    url: '/student/do',
    method: 'post',
    data: data
  })
}

export function updateUser(data) {
  return request({
    url: '/student/do',
    method: 'put',
    data: data
  })
}

export function deleteUser(id) {
  return request({
    url: '/student/do/'+id,
    method: 'delete'
  })
}

export function getUserItem(id) {
  return request({
    url: '/student/get/'+id,
    method: 'get'
  })
}
